﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Sprint1.Models
{
    [MetadataType(typeof(QuestionMetaData))]
    public partial class Question
    {
    }
    public class QuestionMetaData
    {
        public List<Answer> Answers { get; set; }
        [Required]
        public Student Student { get; set; }
        [Required]
        public Course Course { get; set; }
        [Required]
        public string Title { get; set; }
        [Required]
        public string Body { get; set; }
        [Required]
        public DateTime Date { get; set; }
        
        
    }
}